package com.abaaba.project2.controller;

import com.abaaba.project2.bean.bo.AdminFeedbackBaseReq;
import com.abaaba.project2.bean.data.BaseData;
import com.abaaba.project2.bean.vo.BaseRespVo;
import com.abaaba.project2.service.AdminFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * 公网前端无返回数据， 暂无法完成
 * */
@RestController
@RequestMapping("/admin/feedback")
public class AdminFeedbackController {
    @Autowired
    AdminFeedbackService adminFeedbackService;

    @RequestMapping("/list")
    public BaseRespVo getFeedbackList(@Valid AdminFeedbackBaseReq baseReq) {

        BaseData baseData = adminFeedbackService.getFeedbackList(baseReq.getPage(), baseReq.getLimit(), baseReq.getUsername(),
                baseReq.getSort(), baseReq.getOrder(), baseReq.getId());
//        return BaseRespVo.ok(baseData);
        return BaseRespVo.fail("失败拉来啊了");
    }
}
